<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('stripe/statistics')}">统计数据</a></li>
			<li><a href="{:url('stripe/index')}">导入数据</a></li>
			<li ><a href="{:url('stripe/addhost')}" >添加主机</a></li>
			<li class="active"><a   href="javascript:;" >导入日志</a></li>

		</ul>
 

        <div class="tips" style="margin-bottom: 10px; color: red">删除某条日志记录，会删除当前主机对应的当天导入的所有拒付或余额记录。</div>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>id</th>
					<th>管理员</th>
					<th>主机编号</th>
					<th>日志时间</th>
					<th>操作</th>
				</tr>
			</thead>

			<tbody id='llltbody' >
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$user[$vo['uid']]['user_login'] }</td>
					<td>{$vo.host}</td>
					<td>{$vo.addtime|date="Y-m-d H:i:s",###}<font color="red">（<if condition="$vo['logtype'] eq 1">导入余额表操作<elseif condition="$vo['logtype'] eq 2">导入拒付表操作<elseif condition="$vo['logtype'] eq 2">删除拒付表操作<else>删除余额表操作</if>）</font></td>
					<td>
						<a href="{:url('stripe/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script type="text/javascript">
		// Event delegation
		var tbody = document.getElementById("llltbody");
		tbody.onclick = function(event){
			eTarget = event.target;
			if((eTarget.nodeName.toLowerCase()=='td')&&(eTarget.className=="lllclick")){
				var theId = eTarget.parentNode.firstElementChild.innerHTML;
				// console.log(theId);
			}
		}
	</script>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
